package com.lzz.scheduler;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author zhenzhen
 * @date 2018-12-20 上午10:47
 */
@Component
public class scheduler1Task {
    private int count = 1;
    @Scheduled(fixedRate = 1000 * 60 * 60)
    private void process() {
        System.out.println("this is scheduler task runing " + (count++));
    }
}
